package pl.easyshop.core.dao;

import pl.easyshop.core.dao.common.GenericDAO;
import pl.easyshop.core.model.UserModel;


/**
 * User DAO interface.
 * 
 * @author Pawel Witkowski
 */
public interface UserDAO extends GenericDAO<UserModel>{

	/** 
	 * Find user by identifier.
	 * 
	 * @param id user identifier
	 * @return null or user model.
	 */
	UserModel findById(Long id);
	
	/** 
	 * Find user by username.
	 * 
	 * @param userName user name.
	 * @return
	 */
	UserModel findByUserName(String userName);
}
